﻿@using InnovaApp.Layers.ResourcesLayer.Properties
@model InnovaApp.Portals.MVC4Portal.Models.Sample_BasicForm_MyProfileModel
@section featured {
	<section class="featured">
		<div class="content-wrapper">
			<hgroup class="title">
				<h1>@Model._PageTitle</h1>
				<h2>@Model._PageMessage</h2>
			</hgroup>
			@if (!string.IsNullOrEmpty(Model.ReturnUrlMessage))
   { 
				<p class="yellowText">@Model.ReturnUrlMessage</p>
   }
			<p class="message-info">
				@Resources.View_Sample_BasicForm_MyProfile_Help.
			</p>
		</div>
	</section>
}
@using (Ajax.BeginForm(new AjaxOptions() { HttpMethod = "Post", OnSuccess = "$.fn.MainAjaxSuccess", OnFailure = "$.fn.MainAjaxFailure" }))
{
	<section>
		<fieldset class="centerMargin25 ui-widget ui-widget-content ui-corner-all padding15">
			<legend>@Resources.View_Sample_BasicForm_MyProfile_FieldsetCaption</legend>
			<div>
				@Html.EditorFor(m => m.Contact)
			</div>
			<input type="submit" value="@Resources.View_Sample_BasicForm_MyProfile_Submit" id="cmdSubmit" />
		</fieldset>
	</section>
}
@if (Model.InvolvedCode != null)
{
    if (Model.InvolvedCode.Count > 0)
    { 
    <section>
        <span class="involvedCode">@Resources.Views_All_InvolvedCode</span>
        <div id="divInvolvedCode">
            @Html.Partial("_InvolvedCode", Model.InvolvedCode)
        </div>
    </section>
    }
}